package privilege;

import entity.Luggage;

import java.util.List;
/**
 * @author lishunlin110
 * @version 1.0
 * @description 乘客的特权
 * @date 2021/9/16 15:55
 */
public abstract class Privilege {
    int freeWeight;
    String dec;
    List<Luggage> luggageList;

    public Privilege() {
    }

    public Privilege(int freeWeight, String dec, List<Luggage> luggageList) {
        this.freeWeight = freeWeight;
        this.dec = dec;
        this.luggageList = luggageList;
    }

    public int getFreeWeight() {
        return freeWeight;
    }

    public void setFreeWeight(int freeWeight) {
        this.freeWeight = freeWeight;
    }

    public String getDec() {
        return dec;
    }

    public void setDec(String dec) {
        this.dec = dec;
    }

    public List<Luggage> getLuggageList() {
        return luggageList;
    }

    public void setLuggageList(List<Luggage> luggageList) {
        this.luggageList = luggageList;
    }

    public abstract List<Luggage> removeFreeLuggage();
}
